<?php

header('Content-Type: application/json; charset=utf-8');

$datos = json_decode($_GET["datos"]);

$pass1 = $datos->pass1;
$pass2 = $datos->pass2;
//$ex= '(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,10})$';
$var ="";
if ($pass1==$pass2){
	if ((strlen($pass2) >5) && (strlen($pass2) <13)){
			$var = "disponible";
	}else{
			$var = "no_disponible";
	}
	}else{
			$var = "no_disponible";
	}		
	echo json_encode($var);		
?>







